import { registerMicroApps, start } from "qiankun";
import actions from "./action";

const micorApps = [
  {
    name: "qqMusic",
    entry: "//localhost:3002",
    container: "#container",
    activeRule: "/qqMusic",
    props: {
      getGlobalState: actions.getGlobalState,
    },
  },
  {
    name: "neteaseMusic",
    entry: "//localhost:5173",
    container: "#container",
    activeRule: "/neteaseMusic",
    props: {
      getGlobalState: actions.getGlobalState,
    },
  },
];

registerMicroApps(micorApps);
export const startMainApp = () => {
  start();
};
export { micorApps };
